//
//  CellFactory.h
//  nonghubao
//
//  Created by 王 文彬 on 13-3-10.
//  Copyright (c) 2013年 Chongqing Nonghubao Co., Ltd. All rights reserved.
//

#import <Foundation/Foundation.h>


typedef NS_ENUM(NSInteger, NamedCell) {
    NamedCellPersonInformation,
    NamedCellDynamicMood,
    NamedCellDynamicProduct,
    NamedCellDynamicRecommend,
    NamedCellDynamicComment,
    NamedCellDynamicMoodLight,
    NamedCellDynamicProductLight,
    NamedCellDynamicRecommendLight,
    NamedCellPersonInformationLight
};

@interface CellFactory : NSObject

// 得到一个动态的ContentView的原型实例
+ (void)makeCell:(UITableViewCell *)cell forName:(NamedCell)name;

// 计算一个动态的ContentView的高度
+ (float)heightForName:(NamedCell)name withDictionary:(NSDictionary *)data;

// 重新渲染动态的ContentView的元素
+ (void)drawCell:(UITableViewCell *)cell forName:(NamedCell)name withDictionary:(NSDictionary *)data;

@end
